package main

// use gin
import (
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	// Ping test
	r.GET("/ping", func(c *gin.Context) {
		c.String(200, "pong")
	})
	// User agent test
	r.GET("/user_agent", func(c *gin.Context) {
		c.String(200, c.Request.UserAgent())
	})
	r.Run(":8080")
}
